<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>用户管理</title>
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style-1.css" />
	<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css" />
	<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
	<link rel="stylesheet" type="text/css" href="${basePath}/js/layer/skin/layer.css" />
    <script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
<#assign current='menu_manuser'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
                    <#include "/include/left.html"/>
                    <#include "/include/wxtop.html"/>
                    <div class="content">
                        <div class="cLine">
                            <div class="pageNavigator left">
                                <#if isPermitted('admin:user:editview')>
                                <a class="btnGrayS" href="${basePath}/admin/user/editview">
                                    <img class="vm" src="${basePath}/images/add.png">&nbsp;&nbsp;新增
                                </a>
                                </#if>
                            </div>
                            <div class="pageNavigator right">
	                            <form action="${basePath}/admin/user/manage" method="post" id="form_pagination">
									<input class="px" name="username" placeholder="输入用户名检索" value="${username!}" maxlength="100"/>
									<input type="submit" value="搜索" class='btnGreen'/>
								</form>	
                            </div>
                        </div>
						<div class="msgWrap">
           					<table class="ListProduct Shallow_border_color" border="0" cellSpacing="0" cellPadding="0" width="100%">
								<thead>
									<tr valign="top">		
										<th>用户名</th> 
										<th>状态</th> 
										<th>创建时间</th>
										<th style="width:100px;">上次登录IP</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
								  <#if page?exists>
								  <#list page.recordList as bean>
								      <tr>
										<td>${bean.username!}</td>
										<td><#if bean.status==1><span style="color:#39BF63;">可用</span><#else><span style="color:#F6AD3E;">停用</span></#if></td>
										<td>${bean.createtime!}</td>
										<td>${bean.lastip!}</td>
										<td class="norightborder">
											<a href="${basePath}/admin/user/editview?id=${bean.id}">修改</a>
											<a href="javascript:;" onclick="delItem('${bean.id}')">删除</a>
			  								<a href="${basePath}/admin/user/reset?id=${bean.id}">重置</a>
			  							</td>
									 </tr>
								  </#list>
								  </#if>
								</tbody>
							</table>
						</div>
						<#include "/include/form_pagination.html"/>
			            <#include "/include/simple_page_js.html"/>
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
		<!--底部-->
	</div>
	</div>
	</div>
	</div>
	<#include "/include/footer.html"/>
</body>
<script type="text/javascript">
function delItem(id){
	layer.confirm("确定要删除吗？"
			,{icon: 4, title:'确认信息'}
	,function(index){
		layer.close(index);
		window.location.href="${basePath}/admin/user/del?id="+id;
	},function(index){
		layer.msg("您取消了删除操作");
		layer.close(index);
	});
}
</script>
</html>